/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package iteracon.generator;

import iteracon.generator.Rng;
import iteracon.generator.visitor.FromZeroTo;
import iteracon.generator.visitor.FromToStep;
import iteracon.generator.visitor.FromTo;
import java.util.List;

/**
 * Factory for range generator
 * @author martin
 */
public class Range {
  /**
   * from zero to another integer
   * @param size as int
   * @return range generator as List
   */
  public static Rng fromZero(int size){
    return FromZeroTo.make(size);
  }
  /**
   * from one integer to another integer
   * @param from as int
   * @param to as int
   * @return range generator as List
   */
  public static Rng fromTo(int from, int to){
    return FromTo.make(from, to);
  }
  /**
   * from one Integer to another Integer increasing by step
   * @param from as int
   * @param to as int
   * @param step as int
   * @return range generator as List
   */
  public static Rng fromToStep(int from, int to, int step){
    return FromToStep.make(from, to, step);
  }
  
}
